//
//  NetTools.h
//  OrderAssistant
//
//  Created by chendong on 2020/8/28.
//  Copyright © 2020 chendong. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NetTools : NSObject
//get请求
+(void)getWithUrl:(NSString *)url pararms:(NSDictionary *)dic success:(void (^)(id json))success fail:(void (^)(NSError *error))fail;
//post请求
+(void)postWithUrl:(NSString *)url pararms:(NSDictionary *)dic success:(void (^)(id json))success fail:(void (^)(NSError *error))fail;
+(void)utfPostWithUrl:(NSString *)url pararms:(NSDictionary *)dic success:(void (^)(id json))success fail:(void (^)(NSError *error))fail;
@end

NS_ASSUME_NONNULL_END
